package com.qy139.auth.service.impl;

import com.qy139.auth.mapper.TabMenuMapper;
import com.qy139.auth.service.ITabMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qy139.entity.TabMenu;
import com.qy139.util.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单权限表 服务实现类
 * </p>
 *
 * @author yuhaochen
 * @since 2021-12-01
 */
@Service
public class TabMenuServiceImpl extends ServiceImpl<TabMenuMapper, TabMenu> implements ITabMenuService {
    @Resource
    private TabMenuMapper tabMenuMapper;
    @Override
    public List<String> findMenuNameByUserid(Integer id) {
        return tabMenuMapper.findMenuNameByUid(id);
    }

    @Override
    public List<TabMenu> findAllMenu() {
        return tabMenuMapper.findAllMenu();
    }

    @Override
    public List<TabMenu> findAllMenusBtn() {
        return tabMenuMapper.findAllMenusBtn();
    }

}
